﻿namespace Core.Platform
{
    /// <summary>
    /// 原生平台（Editor）
    /// </summary>
    public class EditorPlatform : Component, IAwake, IPlatform
    {
        public void Awake()
        {
        }

        public override void Dispose()
        {
            if (IsDisposed) return;
            base.Dispose();
        }


        public void Exit()
        {
#if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
#else
            UnityEngine.Application.Quit();
#endif
        }
    }
}
